import request from '@/utils/request'

// 查询专栏试卷列表
export function listColumnPaper(query) {
  return request({
    url: '/column/columnPaper/list',
    method: 'get',
    params: query
  })
}

// 查询专栏试卷详细
export function getColumnPaper(id) {
  return request({
    url: '/column/columnPaper/' + id,
    method: 'get'
  })
}

// 新增专栏试卷
export function addColumnPaper(data) {
  return request({
    url: '/column/columnPaper',
    method: 'post',
    data: data
  })
}

// 修改专栏试卷
export function updateColumnPaper(data) {
  return request({
    url: '/column/columnPaper',
    method: 'put',
    data: data
  })
}

// 删除专栏试卷
export function delColumnPaper(id) {
  return request({
    url: '/column/columnPaper/' + id,
    method: 'delete'
  })
}
